package controller;

import model.Customer;
import model.DuplicateCustomerIdentifierException;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;

/**
 *
 * @author Mads Nielsen
 *
 */
public class CustomerController {

    public void createCustomer(String name, int phone, String address, int zipCode, String city) throws DuplicateCustomerIdentifierException {
        Customer customer = new Customer();
        customer.setName(name);
        customer.setPhone(phone);
        customer.setAddress(address);
        customer.setZipCode(zipCode);
        customer.setCity(city);

        throw new NotImplementedException();

        //customers.addCustomer(customer);
    }

    public Customer[] getCustomers() {
        throw new NotImplementedException();
    }

    public void editCustomer(Customer customer, int newPhone, String newName,
            String newAddress, String newCity, int newZipCode) {
        customer.setPhone(newPhone);
        customer.setName(newName);
        customer.setAddress(newAddress);
        customer.setCity(newCity);
        customer.setZipCode(newZipCode);

        throw new NotImplementedException();
    }

    public int getCustomerCount() {
        throw new UnsupportedOperationException("Not yet implemented");
    }
}
